package po;


import java.io.Serializable;
import java.util.Objects;

/**
 * <p>  
 *  TbCrowdMemberMsg 群消息未读记录
 * </p>
 * @author  XieTao
 * @date 2020-04-10 
 */


public class TbCrowdMemberMsg  implements Serializable {


	/**
	 * 记录id
	 */
	private String id;

	/**
	 * 成员id
	 */
	private String member;

	/**
	 * 消息id
	 */
	private String msgId;

	/**
	 * 群ID
	 */
	private String crowd;

	/**
	 * 1群消息2群公告3其他
	 */
	private Integer type;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getMember() {
		return member;
	}

	public void setMember(String member) {
		this.member = member;
	}

	public String getMsgId() {
		return msgId;
	}

	public void setMsgId(String msgId) {
		this.msgId = msgId;
	}

	public String getCrowd() {
		return crowd;
	}

	public void setCrowd(String crowd) {
		this.crowd = crowd;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	@Override
	public boolean equals(Object o) {
		if (this == o) {
			return true;
		}
		if (!(o instanceof TbCrowdMemberMsg)) {
			return false;
		}
		TbCrowdMemberMsg that = (TbCrowdMemberMsg) o;
		return Objects.equals(id, that.id) &&
				Objects.equals(member, that.member) &&
				Objects.equals(msgId, that.msgId) &&
				Objects.equals(crowd, that.crowd) &&
				Objects.equals(type, that.type);
	}

	@Override
	public int hashCode() {
		return Objects.hash(id, member, msgId, crowd, type);
	}

	@Override
	public String toString() {
		return "TbCrowdMemberMsg{" +
				"id='" + id + '\'' +
				", member='" + member + '\'' +
				", msgId='" + msgId + '\'' +
				", crowd='" + crowd + '\'' +
				", type=" + type +
				'}';
	}
}
